package com.qdxwx.data.service.favorite;


import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.favorite.Favorite;

import java.util.List;

/**
 * CourseFavorite接口
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
public interface FavoriteService {

	void insert(Favorite favorite);

	Favorite get(int id);

	int delete(int id);

	int delete(Favorite favorite);

	boolean isExist(long userId, int courseId, int typeId);

	List<Favorite> getList(long userId, int typeId, PageRequest page);

	int count(long userId, int typeId);

	int updateCombine(long userId1, long userId2);
}